<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务 - 问题管理</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body { 
            width: 360px; 
            height: 640px; 
            margin: 0; 
            overflow-y: auto;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Header -->
    <div class="bg-white border-b border-gray-200 sticky top-0 z-10">
        <div class="flex items-center justify-between p-4">
            <h1 class="text-xl font-bold text-gray-800">任务</h1>
            <div class="flex gap-2">
                <button class="p-2 text-gray-600"><i class="fas fa-filter"></i></button>
                <button class="p-2 text-gray-600"><i class="fas fa-search"></i></button>
            </div>
        </div>
        
        <!-- View Toggle -->
        <div class="flex border-t border-gray-200">
            <button class="flex-1 py-3 text-blue-500 border-b-2 border-blue-500 font-semibold">
                <i class="fas fa-list mr-1"></i>列表
            </button>
            <button class="flex-1 py-3 text-gray-500">
                <i class="fas fa-columns mr-1"></i>看板
            </button>
            <button class="flex-1 py-3 text-gray-500">
                <i class="fas fa-calendar mr-1"></i>日历
            </button>
        </div>
    </div>

    <!-- Filter Chips -->
    <div class="p-4 flex gap-2 overflow-x-auto">
        <button class="px-3 py-1 bg-blue-500 text-white rounded-full text-sm whitespace-nowrap">全部 (25)</button>
        <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">待处理 (8)</button>
        <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">处理中 (12)</button>
        <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded-full text-sm whitespace-nowrap">已解决 (5)</button>
    </div>

    <!-- Task List -->
    <div class="px-4 pb-20">
        <!-- Overdue Section -->
        <div class="mb-4">
            <h3 class="text-sm font-semibold text-red-600 mb-2 flex items-center">
                <i class="fas fa-exclamation-circle mr-2"></i>逾期 (5)
            </h3>
            
            <div class="bg-white rounded-lg mb-2 shadow-sm overflow-hidden">
                <div class="p-4 border-l-4 border-red-500">
                    <div class="flex items-start justify-between mb-2">
                        <div class="flex-1">
                            <h4 class="font-semibold text-gray-800 mb-1">修复支付接口超时问题</h4>
                            <p class="text-sm text-gray-600">支付成功但返回超时，导致订单状态异常</p>
                        </div>
                        <span class="bg-red-100 text-red-600 text-xs px-2 py-1 rounded ml-2">P0</span>
                    </div>
                    <div class="flex items-center justify-between text-xs">
                        <span class="text-red-500"><i class="far fa-clock mr-1"></i>逾期 2天</span>
                        <div class="flex gap-1">
                            <span class="bg-blue-100 text-blue-600 px-2 py-1 rounded">工作</span>
                            <span class="bg-purple-100 text-purple-600 px-2 py-1 rounded">后端</span>
                        </div>
                    </div>
                </div>
                <div class="flex border-t border-gray-100">
                    <button class="flex-1 py-2 text-sm text-blue-500"><i class="fas fa-play mr-1"></i>开始</button>
                    <button class="flex-1 py-2 text-sm text-gray-500 border-l border-gray-100"><i class="fas fa-edit mr-1"></i>编辑</button>
                </div>
            </div>
        </div>

        <!-- Today Section -->
        <div class="mb-4">
            <h3 class="text-sm font-semibold text-orange-600 mb-2 flex items-center">
                <i class="fas fa-calendar-day mr-2"></i>今日到期 (12)
            </h3>
            
            <div class="bg-white rounded-lg mb-2 shadow-sm overflow-hidden">
                <div class="p-4 border-l-4 border-orange-500">
                    <div class="flex items-start justify-between mb-2">
                        <div class="flex-1">
                            <h4 class="font-semibold text-gray-800 mb-1">优化首页加载速度</h4>
                            <p class="text-sm text-gray-600">图片懒加载和代码分割优化</p>
                        </div>
                        <span class="bg-orange-100 text-orange-600 text-xs px-2 py-1 rounded ml-2">P1</span>
                    </div>
                    <div class="flex items-center justify-between text-xs">
                        <span class="text-orange-500"><i class="far fa-clock mr-1"></i>今天 18:00</span>
                        <div class="flex gap-1">
                            <span class="bg-blue-100 text-blue-600 px-2 py-1 rounded">工作</span>
                            <span class="bg-green-100 text-green-600 px-2 py-1 rounded">前端</span>
                        </div>
                    </div>
                </div>
                <div class="flex border-t border-gray-100">
                    <button class="flex-1 py-2 text-sm text-blue-500"><i class="fas fa-play mr-1"></i>开始</button>
                    <button class="flex-1 py-2 text-sm text-gray-500 border-l border-gray-100"><i class="fas fa-edit mr-1"></i>编辑</button>
                </div>
            </div>

            <div class="bg-white rounded-lg mb-2 shadow-sm overflow-hidden">
                <div class="p-4 border-l-4 border-blue-500">
                    <div class="flex items-start justify-between mb-2">
                        <div class="flex-1">
                            <h4 class="font-semibold text-gray-800 mb-1">学习 TypeScript 高级类型</h4>
                            <p class="text-sm text-gray-600">泛型、条件类型、映射类型等</p>
                        </div>
                        <span class="bg-blue-100 text-blue-600 text-xs px-2 py-1 rounded ml-2">P2</span>
                    </div>
                    <div class="flex items-center justify-between text-xs">
                        <span class="text-gray-500"><i class="far fa-clock mr-1"></i>今天 22:00</span>
                        <div class="flex gap-1">
                            <span class="bg-green-100 text-green-600 px-2 py-1 rounded">学习</span>
                        </div>
                    </div>
                </div>
                <div class="flex border-t border-gray-100">
                    <button class="flex-1 py-2 text-sm text-blue-500"><i class="fas fa-play mr-1"></i>开始</button>
                    <button class="flex-1 py-2 text-sm text-gray-500 border-l border-gray-100"><i class="fas fa-edit mr-1"></i>编辑</button>
                </div>
            </div>
        </div>

        <!-- In Progress Section -->
        <div class="mb-4">
            <h3 class="text-sm font-semibold text-blue-600 mb-2 flex items-center">
                <i class="fas fa-spinner mr-2"></i>处理中 (8)
            </h3>
            
            <div class="bg-white rounded-lg mb-2 shadow-sm overflow-hidden">
                <div class="p-4 border-l-4 border-green-500">
                    <div class="flex items-start justify-between mb-2">
                        <div class="flex-1">
                            <h4 class="font-semibold text-gray-800 mb-1">编写单元测试用例</h4>
                            <p class="text-sm text-gray-600">覆盖核心业务逻辑模块</p>
                        </div>
                        <span class="bg-green-100 text-green-600 text-xs px-2 py-1 rounded ml-2">P2</span>
                    </div>
                    <div class="mb-2">
                        <div class="flex justify-between text-xs text-gray-600 mb-1">
                            <span>进度</span>
                            <span>60%</span>
                        </div>
                        <div class="w-full bg-gray-200 rounded-full h-2">
                            <div class="bg-blue-500 h-2 rounded-full" style="width: 60%"></div>
                        </div>
                    </div>
                    <div class="flex items-center justify-between text-xs">
                        <span class="text-gray-500"><i class="far fa-clock mr-1"></i>明天 18:00</span>
                        <div class="flex gap-1">
                            <span class="bg-blue-100 text-blue-600 px-2 py-1 rounded">工作</span>
                        </div>
                    </div>
                </div>
                <div class="flex border-t border-gray-100">
                    <button class="flex-1 py-2 text-sm text-green-500"><i class="fas fa-check mr-1"></i>完成</button>
                    <button class="flex-1 py-2 text-sm text-gray-500 border-l border-gray-100"><i class="fas fa-pause mr-1"></i>暂停</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Bottom Navigation -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around py-2">
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-home text-xl mb-1"></i>
            <span class="text-xs">主页</span>
        </a>
        <a href="#" class="flex flex-col items-center text-blue-500 py-1">
            <i class="fas fa-tasks text-xl mb-1"></i>
            <span class="text-xs">任务</span>
        </a>
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-inbox text-xl mb-1"></i>
            <span class="text-xs">收集</span>
        </a>
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-book text-xl mb-1"></i>
            <span class="text-xs">知识</span>
        </a>
        <a href="#" class="flex flex-col items-center text-gray-400 py-1">
            <i class="fas fa-user text-xl mb-1"></i>
            <span class="text-xs">我</span>
        </a>
    </div>
</body>
</html>
